package com.xwdeshj;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


@SpringBootApplication
//扫描 所有需要的包，包含一些自用的工具类包，所在的路径，默认扫描 com.xwdeshj下的 package
@ComponentScan(basePackages = {"com.xwdeshj","org.n3r.idworker"})
//开启定时任务
@EnableScheduling
//开启异步调用方法
@EnableAsync
//swaggerAPI文档
//@EnableSwagger2
public class XwdeshjmanageApplication {

	public static void main(String[] args) {
		SpringApplication.run(XwdeshjmanageApplication.class, args);
	}

}
